﻿using FriendStar.Code;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using FriendStar.Application.VBaseData;
using FriendStar.Domain.Entity.VBaseData;
using System;

namespace FriendStar.Web.Areas.VBaseData.Controllers
{
    public class V_CPK_A3_BB_StoProStockCata_DWCRController : Controller
    {
        //
        // GET: /VBaseData/V_CPK_A3_BB_StoProStockCata_DWCR/
        private V_CPK_A3_BB_StoProStockCata_DWCRApp dutyApp = new V_CPK_A3_BB_StoProStockCata_DWCRApp();
        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult GetGridJson(Pagination pagination, string fhappenComNO, string faccountDate, string ftype)
        {
            var data = new
            {    //生产单位fhappenComNO   台账日期faccountDate 
                rows = dutyApp.GetListH(pagination, fhappenComNO,faccountDate,ftype,Configs.GetValue("UseUnit")),
                total = pagination.total,
                page = pagination.page,
                records = pagination.records
            };
            return Content(data.ToJson());
        }
    }
}
